package com.tensquare.base.dao;
/*
 *ClassName:CityDao
 *Description:城市数据层
 *@author:可爱的大鸭子
 */

import com.tensquare.base.pojo.City;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;
import java.util.Optional;

public interface CityDao extends JpaRepository<City,String>,JpaSpecificationExecutor<City> {
    public List<City> findByNameLikeOrIshot(String name,String ishot);
    public List<City> findByNameLikeOrIshot(String name, String ishot, Pageable pageable);

    public City findByName(String name);
}
